package com.dykj.entity;

import java.io.Serializable;

/**
 * finance
 * @author 
 */
public class Finance implements Serializable {
    private Integer fcustid;

    private String fcustname;

    private Long fcustamount;

    private Integer fsupplyid;

    private String fsupplyname;

    private Long fsupplyamount;

    private static final long serialVersionUID = 1L;

    public Integer getFcustid() {
        return fcustid;
    }

    public void setFcustid(Integer fcustid) {
        this.fcustid = fcustid;
    }

    public String getFcustname() {
        return fcustname;
    }

    public void setFcustname(String fcustname) {
        this.fcustname = fcustname;
    }

    public Long getFcustamount() {
        return fcustamount;
    }

    public void setFcustamount(Long fcustamount) {
        this.fcustamount = fcustamount;
    }

    public Integer getFsupplyid() {
        return fsupplyid;
    }

    public void setFsupplyid(Integer fsupplyid) {
        this.fsupplyid = fsupplyid;
    }

    public String getFsupplyname() {
        return fsupplyname;
    }

    public void setFsupplyname(String fsupplyname) {
        this.fsupplyname = fsupplyname;
    }

    public Long getFsupplyamount() {
        return fsupplyamount;
    }

    public void setFsupplyamount(Long fsupplyamount) {
        this.fsupplyamount = fsupplyamount;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Finance other = (Finance) that;
        return (this.getFcustid() == null ? other.getFcustid() == null : this.getFcustid().equals(other.getFcustid()))
            && (this.getFcustname() == null ? other.getFcustname() == null : this.getFcustname().equals(other.getFcustname()))
            && (this.getFcustamount() == null ? other.getFcustamount() == null : this.getFcustamount().equals(other.getFcustamount()))
            && (this.getFsupplyid() == null ? other.getFsupplyid() == null : this.getFsupplyid().equals(other.getFsupplyid()))
            && (this.getFsupplyname() == null ? other.getFsupplyname() == null : this.getFsupplyname().equals(other.getFsupplyname()))
            && (this.getFsupplyamount() == null ? other.getFsupplyamount() == null : this.getFsupplyamount().equals(other.getFsupplyamount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFcustid() == null) ? 0 : getFcustid().hashCode());
        result = prime * result + ((getFcustname() == null) ? 0 : getFcustname().hashCode());
        result = prime * result + ((getFcustamount() == null) ? 0 : getFcustamount().hashCode());
        result = prime * result + ((getFsupplyid() == null) ? 0 : getFsupplyid().hashCode());
        result = prime * result + ((getFsupplyname() == null) ? 0 : getFsupplyname().hashCode());
        result = prime * result + ((getFsupplyamount() == null) ? 0 : getFsupplyamount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fcustid=").append(fcustid);
        sb.append(", fcustname=").append(fcustname);
        sb.append(", fcustamount=").append(fcustamount);
        sb.append(", fsupplyid=").append(fsupplyid);
        sb.append(", fsupplyname=").append(fsupplyname);
        sb.append(", fsupplyamount=").append(fsupplyamount);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}